package com.example.permissionservice.pojo;

import java.util.ArrayList;
import java.util.List;

public class ResourceParent {

    private String title;

    private List<Resource> resourceList = new ArrayList<>();

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public List<Resource> getResourceList() {
        return resourceList;
    }

    public void setResourceList(List<Resource> resourceList) {
        this.resourceList = resourceList;
    }

    public void addResource(Resource resource){
        resourceList.add(resource);
    }

    @Override
    public String toString() {
        return "ResourceParent{" +
                "title='" + title + '\'' +
                ", resourceList=" + resourceList +
                '}';
    }
}
